﻿using SqlSugar;

namespace DongFangGuoKai.WCSPlatform.WebApi.Logs
{
    /// <summary>
    /// DbContext
    /// </summary>
    public class DbContext
    {
        private readonly ISqlSugarClient client;
        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="client"></param>
        public DbContext(ISqlSugarClient client)
        {
            this.client = client;
        }
        /// <summary>
        /// 日志实体
        /// </summary>
        public SimpleClient<LogModel> LogModel { get { return new SimpleClient<LogModel>(client); } }
    }
}
